package com.clinic.api.doctor;

import com.clinic.framework.common.request.DoctorQueryRequest;
import com.clinic.framework.common.response.QueryList;
import com.clinic.framework.common.response.ResponseResult;
import com.clinic.framework.common.response.ResponseValue;
import com.clinic.framework.domain.base.Doctor;
import com.clinic.framework.domain.base.Doctor;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@Api(value = "医生管理",description = "医生管理接口")
public interface DoctorControllerApi {
    @ApiOperation("增加医生")
    @PostMapping("/add")
    public ResponseResult addDoctor(@RequestBody Doctor doctor);
    @ApiOperation("根据id查询医生")
    @GetMapping("/get/{id}")
    public ResponseValue<Doctor> findDoctorById(@PathVariable("id") String id);
    @ApiOperation("修改医生")
    @PostMapping("/edit")
    public ResponseResult editDoctor(@RequestBody Doctor Doctor);
    @ApiOperation("根据id删除医生")
    @DeleteMapping("/get/{id}")
    public ResponseResult delDoctor(String id);
    @ApiOperation("医生列表")
    @GetMapping("/list/{page}/{size}")
    public QueryList<Doctor> findDoctorList(@PathVariable("page") String page, @PathVariable("size") String size, DoctorQueryRequest dqr);
}
